package com.hxl.olympic.fragment;

import android.view.View;
import android.widget.ListView;

import com.hxl.olympic.R;
import com.hxl.olympic.adapter.LvAdapter;
import com.hxl.olympic.pojo.Goods;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;

public class LvFragment extends BaseFragment implements View.OnClickListener {

    @BindView(R.id.lv)
    ListView lv;
    private LvAdapter lvAdapter;
    private List<Goods> goods = new ArrayList<>();

    @Override
    public void initialize() {

    }

    public void selectGoods(String input) {
        lvAdapter = new LvAdapter(activity, goods);
        lv.setAdapter(lvAdapter);
        dialog.show();
    }

    @Override
    public void initViews() {

    }


    @Override
    public void initData() {

    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_lv;
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {

        }
    }
}
